
FUNCTION LCB_Speed_nToNorm_r :Real
TITLE = 'LCB_Speed_nToNorm_r'
//
// This FUN uses the transmitted machine parameters and converts a real speed signal into a scaled 32-bit signal.
//
// Versionshistory:
// 1.0 Ersterstellung R.Enders

VERSION : '1.0'
AUTHOR  : 'Lenze'
FAMILY  : 'LCB'
NAME : 'SnToNr' // ( 8 Zeichen max.)
KNOW_HOW_PROTECT

VAR_INPUT
    diIn_n    : DINT;
END_VAR

BEGIN

 LCB_Speed_nToNorm_r:=DINT_TO_REAL(diIn_n) / 10737418.24 ;
        
END_FUNCTION